//
//  MyDepositViewModel.h
//  CBT
//
//  Created by Mr.Zhang on 2018/11/21.
//  Copyright © 2018 Mr.Zhang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MyInvestListModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface MyDepositViewModel : NSObject

/** 我的存单列表请求成功 */
@property(nonatomic,strong) RACSubject *listSuccessObject;
/** 我的存单列表请求失败 */
@property(nonatomic,strong) RACSubject *listFailureObject;

/** 用户续投成功 */
@property(nonatomic,strong) RACSubject *continueSuccessObject;
/** 用户续投失败 */
@property(nonatomic,strong) RACSubject *continueFailureObject;

-(void)exchangeDataWithPage:(NSString *)page;

/** 提取本金获取存单状态成功 */
@property(nonatomic,strong) RACSubject *investStateSuccess;
/** 提取本金获取存单状态失败 */
@property(nonatomic,strong) RACSubject *investStateFailure;

/**
 获取本金获取存单状态
 
 @param userID 用户ID
 @param investId 存单ID
 @param indexPath 数组下标
 */
-(void)takedrawCapitalOrIncomeWithUserId:(NSString *)userID investId:(NSString *)investId indexPath:(NSInteger)indexPath;


/**
 用户续投

 @param investId 存单ID
 */
-(void)userContinueInvestWithInvestId:(NSString *)investId;


/** 提取本金成功 */
@property(nonatomic,strong) RACSubject *takeOriginalSuccessObject;
/** 提取本金失败 */
@property(nonatomic,strong) RACSubject *takeOriginalFailureObject;

/**
 我的存单提取本金
 @param investId 存单ID
 */
-(void)takedrawCapitalOrIncomeWithInvestId:(NSString *)investId;

@end

NS_ASSUME_NONNULL_END
